package com.yjd.comm.ip.service;

import java.util.HashMap;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.ip.model.IpModel;

/**
 * <b>description</b>：每日访问记录业务接口<br>
 * <b>time</b>：2015-01-04 11:04:26 <br>
 * <b>author</b>：  percy-chen@hotmail.com
 */
public interface IIpService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public IpModel insert(IpModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(IpModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id) throws Exception;
	
	/**
	 * 
	* 获取最大日期
	* @return
	* @throws Exception
	 */
	public long getMaxDate() throws Exception;

}
